package com.sp.api.springbootapi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import java.util.Arrays;

@SpringBootApplication
public class SpringbootApiApplication {

    public static void main(String[] args) {
        ApplicationContext ctx = SpringApplication.run(SpringbootApiApplication.class, args);
        String[] names = ctx.getBeanDefinitionNames();
        System.out.println("---------------------------------");
        Arrays.stream(names).forEach(System.out::println);
        System.out.println("*********************************");
    }
}
